{if count($aItems) > 0}
{if !$bHide}
<table style="width: 100%;" cellpadding="4" cellspacing="0">
	<tr>
		<td class="border2">

			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{language text="my_gallery"}</td>
				</tr>
			</table>

			 <table style="width:100%;" cellspacing="4">
			 <tr><td>
				<table style="width:100%;">
				<tr>
			{foreach from=$aItems item=aItem name=aitems}
					<td style="width:25%;text-align:center;">
					<a href="{url link='public.user.gallery.view' id=$aItem.id foxseotitle=$aItem.text name=$sUser}">
					{img src="`$sImageUrl`thumb/`$aItem.id`.jpg" src_def="design/pic/noimage_120.jpg" alt="" style="vertical-align:middle;" class="pic1" onmouseover="this.className='pic2';" onmouseout="this.className='pic1';"}
					</a>
				</td>
			{foreachelse}
			<td>
			<div class="message_info">
			{language text="there_are_no_images_submitted_yet"}
			</div>
			</td>
			{/foreach}
				</tr>
				</table>
			 </td>
			 </tr>
			 </table>
			 
<div style="padding:8px;text-align:right;">
	<a href="{url link='public.user.gallery' name=$sUser}" class="link_action">[ {language text='Mod_Gallery.view_all_my_images'} ]</a>
</div>			 
			 
		</td>
	</tr>
</table>
<br />
{/if}
{/if}